﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="wuc_Login.ascx.cs" Inherits="Cinemax.UserControl.wuc_Login" %>
<%
    if (!islogin)
    {
%>
<div id="signinbox">
    <table cellpadding="3" cellspacing="0" style="width: 100%">
        <tr>
            <td>
                Tên đăng nhập:
            </td>
            <td>
                <asp:TextBox ID="txtuid" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Mật khẩu:
            </td>
            <td>
                <asp:TextBox ID="txtpass" runat="server" TextMode="Password"></asp:TextBox>
            </td>
        </tr>
    </table>
    
    <asp:Button style="float: right; margin: 5px 2px;" ID="Login" runat="server" 
        Text="Đăng nhập" onclick="Login_Click" />
    <br />
    <br />
    <a href="register.aspx" style="text-decoration: none; color: aqua;">Đăng ký thành viên</a>
</div>
<%
    }
    else
    {
%>
<div id="signinbox">
    <div style="text-align: center;">
        <h2>
            Xin chào, <a href="#" style="text-decoration: none; color: aqua;"><%=username %></a>
        </h2>
        Điểm: <%=point %> điểm<br />
        <a href="home.aspx?logout=1" style="text-decoration: none; color: aqua;">(Đăng xuất)</a>
    </div>
</div>
<%
    }
%>
